package com.sykj.controller;

import com.sykj.bean.BisBagRecordPage;
import com.sykj.bean.BisNurseBagPage;
import com.sykj.service.BisBagRecordService;
import com.sykj.util.reponse.BaseResponse;
import com.sykj.util.reponse.CommonEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@CrossOrigin
@RestController
public class BisBagRecordController {
    @Autowired
    private BisBagRecordService bisBagRecordService;

//    BisBagRecordList
    @GetMapping(value = "bisBagRecord/BisBagRecordList")
    public BaseResponse BisBagRecordList(BisBagRecordPage bisBagRecord){
        System.out.println(bisBagRecord.getCustomUserId());
//        System.out.println(bisBagRecord.get);
        List<BisNurseBagPage> bisBagRecordList=bisBagRecordService.BisBagRecordList(bisBagRecord);
        return new BaseResponse(CommonEnum.LAYUI_SUCCESS,bisBagRecordList);
    };




}
